package com.adcc.loadsheet.billing.mapper.mysql;

import com.adcc.loadsheet.billing.entity.PbStaffEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * Created by zhaoml on 2020-04-01.
 */
@Mapper
public interface PbStaffEntityMapper {

    //根据条件获取用户
    List<PbStaffEntity> select(Map<String, Object> map);

    //通过登录名获取用户
    PbStaffEntity findByLoginId(String loginId);

    //根据合同用户查询用户名称
    List<String> selectPbNamesByContractUserId(Integer contractUserId);

    //根据用户id查询用户名称
    List<String> selectPbNamesByLoginIds(String loginIds);

    //查询合同用户列表
    List<PbStaffEntity> selectContractUser();
}